var express = require("express");
var router = express.Router();

/* GET home page. */
router.get("/", function (req, res, next) {
  // todo 可以去连接数据库，并且拿到数据
  const arr = [
    {
      name: "zhangsan",
    },
    {
      name: "lisi",
    },
    {
      name: "wangwu",
    },
  ];

  res.render("index", { title: "Express的导航", arr });
});

module.exports = router;
